home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime for java / zoo tutorial / module 7- switching compositors / source / zoo7.java < prev    next >
Encoding:
Java Source  |  2000-06-23  |  3.1 KB  |  71 lines

  1. import quicktime.QTSession;
  2. import quicktime.QTException;
  3.  
  4.  
  5. /**
  6.  * QTZoo Module 7 - Switching between two compositors
  7.  * This application requires QuickTime for Java
  8.  *
  9.  * @author Levi Brown
  10.  * @author Michael Hopkins
  11.  * @author Apple Computer, Inc.
  12.  * @version 6.0 4/10/2000
  13.  *
  14.  * Copyright:     © Copyright 1999 Apple Computer, Inc. All rights reserved.
  15.  *    
  16.  * Disclaimer:    IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  17.  *                ("Apple") in consideration of your agreement to the following terms, and your
  18.  *                use, installation, modification or redistribution of this Apple software
  19.  *                constitutes acceptance of these terms.  If you do not agree with these terms,
  20.  *                please do not use, install, modify or redistribute this Apple software.
  21.  *
  22.  *                In consideration of your agreement to abide by the following terms, and subject
  23.  *                to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  24.  *                copyrights in this original Apple software (the "Apple Software"), to use,
  25.  *                reproduce, modify and redistribute the Apple Software, with or without
  26.  *                modifications, in source and/or binary forms; provided that if you redistribute
  27.  *                the Apple Software in its entirety and without modifications, you must retain
  28.  *                this notice and the following text and disclaimers in all such redistributions of
  29.  *                the Apple Software.  Neither the name, trademarks, service marks or logos of
  30.  *                Apple Computer, Inc. may be used to endorse or promote products derived from the
  31.  *                Apple Software without specific prior written permission from Apple.  Except as
  32.  *                expressly stated in this notice, no other rights or licenses, express or implied,
  33.  *                are granted by Apple herein, including but not limited to any patent rights that
  34.  *                may be infringed by your derivative works or by other works in which the Apple
  35.  *                Software may be incorporated.
  36.  *
  37.  *                The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  38.  *                WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  39.  *                WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  40.  *                PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  41.  *                COMBINATION WITH YOUR PRODUCTS.
  42.  *
  43.  *                IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  44.  *                CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  45.  *                GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  46.  *                ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  47.  *                OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  48.  *                (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  49.  *                ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  50.  * 
  51.  */
  52.  
  53. public class Zoo7
  54. {
  55.     static public void main(String[] args) 
  56.     {
  57.         try
  58.         {
  59.             QTSession.open();            // Initialize QuickTime 
  60.             new MainFrame( "QTZoo7" );    // Create main content frame
  61.         }
  62.         catch (Exception e) 
  63.         {
  64.             e.printStackTrace();
  65.             QTSession.close();            // Shut down QuickTime and dispose of native context
  66.         }
  67.     }
  68.     
  69.     protected MainFrame mainFrame;
  70. }
  71.